import axios from "axios";

const service = axios.create({
  baseURL: "/api",
  timeout: 5000
})

export default service

//允许携带cookie:   axios.defaults.withCredentials = true;    
//创建完后修改:     axios.defaults.timeout = 6666;
//请求时修改：      axios.get('/xx',{timeout:6666})